package com.neoCalf.neoFriend.feigns;

import com.neoCalf.neoCommon.entity.SysSetting;
import com.neoCalf.neoCommon.model.R;
import com.neoCalf.neoCommon.model.dto.UserInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotEmpty;

@FeignClient(value = "userService", path = "/api")
public interface UserServiceFeign {
    /**
     * 获取系统设置
     */
    @PostMapping("/public/sysSetting")
    SysSetting getSysSetting();

    @PostMapping("/info/findUserInfo4")
    R<UserInfoDto> findUserInfo4(@RequestParam("userId") String userId);
}

